import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import SksUI from '/index.js'
import Vue from "vue";
import {mockRequest} from "./mockData";

//在config.js中导入
// import './styles/element-variables.scss'
// import './styles/index.scss' // global css


export default async ({
  Vue
}) => {
  if (typeof process === 'undefined') {
    Element.Table.props.border={
      default: true,
      type: Boolean
    }
    Vue.use(Element,{
      size: "mini"
    })

    Vue.use(SksUI, {
      request: mockRequest,
    })
  }
}
Vue.config.productionTip = false;
if(Vue.prototype.sksConfig){
  Vue.prototype.sksConfig.isAdmin=true
  Vue.prototype.sksConfig.isSystem=true
}


import ShowRemoteCodeDialog from './component/show-remote-code-dialog'
Vue.component('ShowRemoteCodeDialog',ShowRemoteCodeDialog)

import Dialog40 from "./example/dialog/Dialog40";
Vue.component("Dialog40",Dialog40)
import Page40 from "./example/page/Page40";
Vue.component('Page40',Page40)
import Page50 from "./example/page/Page50";
Vue.component('Page50',Page50)
import Page51 from "./example/page/Page51";
Vue.component('Page51',Page51)
import Page52 from "./example/page/Page52";
Vue.component('Page52',Page52)


import Page4030a from "./example/page/Page4030a";
Vue.component('Page4030a',Page4030a)
import Page4030b from "./example/page/Page4030b";
Vue.component('Page4030b',Page4030b)
